<script setup lang="ts">
import { Button, ClButton } from "@chulei-ui/components";
import { useMarketStore } from "../../../cache/MarketStore";

const marketStore = useMarketStore();

const syncMarketData = async () => {
  await marketStore.sync();
};
defineOptions({
  name: "SyncMarketDataButton",
});
</script>

<template>
  <cl-button :type="Button.Type.primary" :size="Button.Size.small" @click="syncMarketData">同步吉他市场数据</cl-button>
</template>

<style scoped lang="scss"></style>
